<template>
    <div>
            <div class="mui-numbox" data-numbox-min='1' data-numbox-max='9'>
					<button class="mui-btn mui-btn-numbox-minus" type="button">-</button>
					    <input id="test" class="mui-input-numbox" type="number" value="0" @change = "getNumber" ref="number"/>
					<button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
			</div>
    </div>
</template>
<script>
import mui from '../../lib/Mui/js/mui.min.js'
    export default {
        mounted :function (){
            mui('.mui-numbox').numbox()
        },
        methods:{
            getNumber(){
                this.$emit('func',parseInt(this.$refs.number.value))
                // console.log(parseInt(this.$refs.number.value))
            }
        }
    }
</script>
<style lang="">
    
</style>